package com.liang.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liang.subject.infra.basic.entity.SubjectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 29018
* @description 针对表【subject_info(题目信息表)】的数据库操作Mapper
* @createDate 2024-10-12 15:22:34
* @Entity com.liang.subject.infra.basic.entity.SubjectInfo
*/
public interface SubjectInfoMapper extends BaseMapper<SubjectInfo> {

    Page<SubjectInfo> querySubjectList(@Param("page") Page<SubjectInfo> page,
                                       @Param("subjectInfo") SubjectInfo subjectInfo,
                                       @Param("categoryId") Long categoryId,
                                       @Param("labelId") Long labelId);

    List<SubjectInfo> getContributeList();

    Long querySubjectIdCursor(@Param("subjectId") Long subjectId,
                              @Param("categoryId") Long categoryId,
                              @Param("labelId") Long labelId,
                              @Param("cursor") int cursor);
}




